package com.example.new6.entity;

public class Translate {
    private String sourceText;
    private String targetText;
    private String source;
    private String target;

    // 构造函数、getter 和 setter

    public Translate(String sourceText, String targetText, String source, String target) {
        this.sourceText = sourceText;
        this.targetText = targetText;
        this.source = source;
        this.target = target;
    }
    public Translate(){}

    public String getSourceText() {
        return sourceText;
    }

    public void setSourceText(String sourceText) {
        this.sourceText = sourceText;
    }

    public String getTargetText() {
        return targetText;
    }

    public void setTargetText(String targetText) {
        this.targetText = targetText;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    @Override
    public String toString() {
        return "Translate{" +
                "sourceText='" + sourceText + '\'' +
                ", targetText='" + targetText + '\'' +
                ", source='" + source + '\'' +
                ", target='" + target + '\'' +
                '}';
    }
}
